//
// File:	GuiMenuOptions.hpp
// Author:	Thomas TISSOT-DUPONT
// Login:	<thomas.tissotdupont@free.fr>
//
// Create:	29/01/2010 at 00:28:35
// Purpose:	
//
#ifndef GUIMENUOPTIONS_HPP
#define GUIMENUOPTIONS_HPP

#include "GuiPanel.hpp"

class GuiMenuOptions : public GuiPanel
{
	Q_OBJECT

public:
										GuiMenuOptions(QWidget *pParent = NULL);
										~GuiMenuOptions();
public slots:
	void								onBackClicked();

public:
	enum Buttons
	{
		ButtonBack
	};
	enum Labels
	{
		LabelPlayerNick,
		LabelServerAddress,
		LabelServerPort,
		LabelFullscreen
	};
	enum Fields
	{
		FieldPlayerNick,
		FieldServerAddress,
		FieldServerPort
	};
	enum Checkboxes
	{
		CheckboxFullscreen
	};

protected:
	void								showEvent(QShowEvent *e);

private:
	QMap<Labels, GuiLabel *>			_menuLabels;
	QMap<Fields, GuiLineEdit *>			_menuFields;
	QMap<Checkboxes, GuiCheckBox *>		_menuCheckboxes;
	QMap<Buttons, GuiPushButton *>		_menuButtons;
};

#endif //!GUIMENUOPTIONS_HPP
